import 'package:flutter/material.dart';
import 'package:whale/helper/utils/util.dart';
import 'package:whale/pages/im/component/im_input_expression/index.dart';
import 'package:whale/pages/im/im/index.dart';
import 'widgets.dart';

class IMText extends IMCell {
  IMText({super.key, required super.md});
  final state = Get.find<ImController>().state;
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.fromLTRB(5, 2, 3, 2),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Text.rich(
            TextSpan(
              children: state.getEmojiText(md.msg.content),
            ),
          ),
        ],
      ),
    );
  }
}
